package net.zjitc.demo;

/**
 * @Author admin
 * @Date 2019/4/2 8:16
 */
public enum  ESeason {
    /*
     name:SPRING
      origial:0
    */
    /*实例*/
    SPRING("spring",1),
    SUMMER("Summer",2),
    FALL("fall",4),
    WINTER("winter",3);

    private final String name;
    private final int num;


    private ESeason(String name, int num) {
        this.name = name;
        this.num = num;
    }

    public String getName() {
        return name;
    }

    public int getNum() {
        return num;
    }

    /**
     * SUMMER,FALL,WINTER,SPRING;
     * 相当于
     * new ESeason("SPRING",0);
     * new SUMMER("SUMMER",1);
     * new FALL("FALL",2);
     * new WINTER("WINTER",3);
     */
}
